# 点击账号
# 点击详情
# 获取base64截图
# 获取用户信息
# 返回
# 滑动下一个  item高度不确定   276
import json
import time
from http_requests import HttpRequest

http_client = HttpRequest(base_url="http://" + "10.88.80.91:18080/api")

for item in range(0, 5):
    temp = 35
    if (item != 0):
        temp = 0

    data = {"x1": 0.2, "y1": 638 + temp, "x2": 0.2, "y2": 362, "duration": 500}
    time.sleep(3)
    response = http_client.post("swipe", data=json.dumps(data), headers={"Content-Type": "application/json"})
